package com.plian.system.dto.sys.warning;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.plian.Tools.DateUtil;
import com.plian.system.entity.sys.warning.WarningMessage;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @Description: TODO
 * @Author: Take-off
 * @Date: 2023/4/25 11:18 AM
 * @Param
 * @return
 * @Version: 1.0
 **/
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(value = "预警消息表 DTO")
public class WarningMessageDTO extends WarningMessage {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "预警日期-开始")
    @DateTimeFormat(pattern = DateUtil.PATTERN_DATE)
    @JsonFormat(pattern = DateUtil.PATTERN_DATE)
    private Date warningStartDate;

    @ApiModelProperty(value = "预警日期-结束")
    @DateTimeFormat(pattern = DateUtil.PATTERN_DATE)
    @JsonFormat(pattern = DateUtil.PATTERN_DATE)
    private Date warningEndDate;

    @ApiModelProperty(value = "业务模块集合")
    private List<Integer> businessModules;

    @ApiModelProperty(value = "查询组织范围")
    private String orgId;

    @ApiModelProperty(value = "查询组织集合")
    private List<String> orgIds;
}
